const scrollMixin = {
    methods: {
        scrollIntoView(id = '#Anchor') {
            this.$nextTick(() => {
                const targetEL = document.querySelector(id);
                if (targetEL) {
                    targetEL.scrollIntoView({ behavior: 'smooth' });
                }
            });
        }
    }
};

export default scrollMixin;
